package org.example.springmessage.service.impl;

import org.example.springmessage.domain.Speak;
import org.example.springmessage.mapper.SpeakMapper;
import org.example.springmessage.service.SpeakService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpeakServiceImpl implements SpeakService {
    @Autowired
    private SpeakMapper speakMapper;
    @Override
    public List<Speak> getAllSpeaks(String messageid) {
        return speakMapper.getAllSpeaks(messageid);
    }

    @Override
    public boolean insert(Speak speak) {
        return speakMapper.insert(speak);
    }
}
